package com.neusoft.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论实体类
 *
 * @author Lucifer
 * @since 2021/5/15 23:32
 */
@Data
@TableName("comment")
@ApiModel("评论表-comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 3148176768559230877L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户ID")
    private Integer user_id;

    @ApiModelProperty("商品ID")
    private Integer item_id;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("评论时间")
    private Date create_time;

    @ApiModelProperty("审核状态：0，未审核，1，已审核")
    private Integer status;

    @ApiModelProperty("评论分数")
    private Integer score;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private User user;

    @TableField(exist = false)
    @ApiModelProperty(hidden = true)
    private Item item;

}

